package com.x.gzcrm.web.controller;

import com.x.gzcrm.utils.ValidateImageCodeUtils;
import org.springframework.security.web.DefaultRedirectStrategy;
import org.springframework.security.web.RedirectStrategy;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.imageio.ImageIO;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

@Controller
public class LoginController {

    @RequestMapping("login") //可以get和post请求
    //@RequestMapping(value = "login",method = RequestMethod.POST)
    //@PostMapping("login")
    //@RequestMapping(value = "login",method = RequestMethod.GET)
    //@GetMapping("login")
    public String login(){
        return "login";
    }

    @RequestMapping("login-error")
    public String loginError(){
        return "login-error";
    }












}
